package cn.java.caixiaoqing.service.impl;

import cn.java.caixiaoqing.dao.PersonDao;
import cn.java.caixiaoqing.dao.TeacherDao;
import cn.java.caixiaoqing.domain.Person;
import cn.java.caixiaoqing.domain.Teacher;
import cn.java.caixiaoqing.service.PersonService;
import cn.java.caixiaoqing.utils.MybatisUtils;

import java.util.List;

public class PersonServiceImpl implements PersonService {

    private PersonDao personDao = MybatisUtils.getSqlSession().getMapper(PersonDao.class);

    @Override
    public List<Person> finAllPerson() {
        return personDao.findAll();
    }
}
